//
//  WD_TimeLineModel.m
//  BUDING
//
//  Created by HanWoonYong on 16/3/31.
//  Copyright © 2016年 HanWoonYong. All rights reserved.
//

#import "WD_TimeLineModel.h"

@implementation WD_TimeLineModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
    if ([key isEqualToString:@"ownerObject"]) {
        self.ownerObjects = [[WD_OwnerModel alloc] initWithDataSource:value];
        [self.ownerObjects setValuesForKeysWithDictionary:value];
    }
    
    if ([key isEqualToString:@"relatedObject"]) {
        self.relatedObjects = [[WD_RelatedModel alloc] initWithDataSource:value];
        //        [self.relatedObjects setValuesForKeysWithDictionary:value];
        
        [self.relatedObjects setValuesForKeysWithDictionary:value];
        
    }
    
}









@end
